<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>综合</title>
</head>
<script src="/js/vue.js"></script>
<style>
    .active{
        color: red;
    }
</style>
<body>
    
    <div id ="app">
        <ul>
            <li :class="{active:false}" v-for="book in books" @Click="btnClick()">{{book}}</li>
        </ul>
    </div>
    
    <script>
       let app =new Vue({
         el:"#app",
         data:{
          books:['三国演义','西游记','红楼梦','水浒传']
         },
         methods:{
            btnClick(){}
         }

       })
    </script>  
</body>
</html>